package com.lehecai.core.lottery;

import com.lehecai.core.IntegerBeanLabelItem;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by He Wang on 14-8-4.
 */
public class RegFromType extends IntegerBeanLabelItem {

	private static final Logger logger = LoggerFactory.getLogger(RegFromType.class.getName());

	private static final long serialVersionUID = 4655180046354167197L;

	private static List<RegFromType> items = new ArrayList<RegFromType>();

	protected RegFromType(String name, int value) {
		super(RegFromType.class.getName(), name, value);
		items.add(this);
	}

	public static RegFromType getItem(int value){
		try {
			return (RegFromType)RegFromType.getResult(RegFromType.class.getName(), value);
		} catch (Exception e) {
			logger.error(e.getMessage(), e);
			return null;
		}
	}

	public static List<RegFromType> getItems() {
		return items;
	}

    public static final RegFromType USER_REGFROM_UNKNOWN = new RegFromType("未知", 0);

	public static final RegFromType USER_REGFROM_DEFAULT = new RegFromType("默认", 1);
	public static final RegFromType USER_REGFROM_WAP = new RegFromType("WAP", 2);

	public static final RegFromType USER_REGFROM_MOBILEAPI = new RegFromType("mobileapi", 3);
	public static final RegFromType USER_REGFROM_GAME = new RegFromType("游戏", 4);
	public static final RegFromType USER_REGFROM_TOUCH = new RegFromType("touch", 5);
	public static final RegFromType USER_REGFROM_ANDROID = new RegFromType("android", 6);
	public static final RegFromType USER_REGFROM_IPHONE = new RegFromType("iphone", 7);
	public static final RegFromType USER_REGFROM_PASSPORT = new RegFromType("passport", 8);
	public static final RegFromType USER_REGFROM_MOBILE = new RegFromType("mobile", 9);
	public static final RegFromType USER_REGFROM_SMS = new RegFromType("短信", 10);
	public static final RegFromType USER_REGFROM_BAIDU = new RegFromType("百度", 101);
	public static final RegFromType USER_REGFROM_ALIPAY = new RegFromType("支付宝", 102);
	public static final RegFromType USER_REGFROM_ALIPAY_QL = new RegFromType("支付宝_QL", 103);
	public static final RegFromType USER_REGFROM_HOOPCHINA = new RegFromType("虎扑", 104);
	public static final RegFromType USER_REGFROM_SINAWEIBO = new RegFromType("新浪微博", 105);
	public static final RegFromType USER_REGFROM_CHINA = new RegFromType("中华网", 106);
	public static final RegFromType USER_REGFROM_GANJI = new RegFromType("赶集", 107);
	public static final RegFromType USER_REGFROM_CAIBAOBEI = new RegFromType("彩宝贝", 108);
	public static final RegFromType USER_REGFROM_GOYOO = new RegFromType("光音网络", 109);
	public static final RegFromType USER_REGFROM_SOHU = new RegFromType("搜狐", 110);
	public static final RegFromType USER_REGFROM_BAOFENG = new RegFromType("暴风", 111);
	public static final RegFromType USER_REGFROM_TENCENT = new RegFromType("腾讯", 112);
	public static final RegFromType USER_REGFROM_SOTIPS = new RegFromType("智彩", 113);
	public static final RegFromType USER_REGFROM_ACFUN = new RegFromType("acFun", 114);
	public static final RegFromType USER_REGFROM_BAIDU_YOUXI = new RegFromType("百度游戏", 115);
	public static final RegFromType USER_REGFROM_LKGAME = new RegFromType("老K游戏", 116);
	public static final RegFromType USER_REGFROM_MOFANG = new RegFromType("魔方", 117);
	public static final RegFromType USER_REGFROM_EGOU = new RegFromType("易购", 118);
	public static final RegFromType USER_REGFROM_58 = new RegFromType("58同城", 119);
	public static final RegFromType USER_REGFROM_BAIDU_TIEBA = new RegFromType("百度贴吧", 120);
	public static final RegFromType USER_REGFROM_INTERNALAPI_KOUDAI = new RegFromType("口袋（internalapi）", 121);
	public static final RegFromType USER_REGFROM_INTERNALAPI_WEIXIN = new RegFromType("微信（internalapi）", 122);
	public static final RegFromType USER_REGFROM_HENGAN = new RegFromType("恒安保险（pc端接入）", 123);
	public static final RegFromType USER_REGFROM_INTERNALAPI = new RegFromType("普通用户注册（internalapi）", 124);
	public static final RegFromType USER_REGFROM_INTERNALAPI_MOBILE = new RegFromType("手机号注册（internalapi）", 125);
	public static final RegFromType USER_REGFROM_INTERNALAPI_TENCENT = new RegFromType("腾讯（internalapi）", 126);
	public static final RegFromType USER_REGFROM_INTERNALAPI_SOHU = new RegFromType("搜狐（internalapi）", 127);
	public static final RegFromType USER_REGFROM_INTERNALAPI_SINAWEIBO = new RegFromType("新浪微博（internalapi）", 128);
	public static final RegFromType USER_REGFROM_INTERNALAPI_HOOPCHINA = new RegFromType("虎扑（internalapi）", 129);
	public static final RegFromType USER_REGFROM_INTERNALAPI_CAIBAOBEI = new RegFromType("彩宝贝（internalapi）", 130);
	public static final RegFromType USER_REGFROM_INTERNALAPI_BAIDUWAPAPP = new RegFromType("百度wap app（internalapi）", 131);
	public static final RegFromType USER_REGFROM_INTERNALAPI_BAIDUTIEBA = new RegFromType("百度贴吧（internalapi）", 132);
	public static final RegFromType USER_REGFROM_INTERNALAPI_ALIPAY_QUICK = new RegFromType("支付宝快登（internalapi）", 133);
	public static final RegFromType USER_REGFROM_INTERNALAPI_58 = new RegFromType("58同城（internalapi）", 134);
	public static final RegFromType USER_REGFROM_INTERNALAPI_JDWYQB = new RegFromType("京东网银钱包（internalapi）", 135);

	public static final RegFromType USER_REGFROM_FLOATUSERNAME = new RegFromType("浮层用户名注册", 136);
	public static final RegFromType USER_REGFROM_FLOATMOBILE = new RegFromType("浮层手机号注册", 137);
	public static final RegFromType USER_REGFROM_INTERNALAPI_ZHIBO8 = new RegFromType("直播吧（internalapi）", 138);

}
